-- GENERATED SPELL FOR [Stonebreaker Grunt] --


function spell0_18973(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40505,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18973', 587, 1)
end

function spell1_18973(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_18973', 626, 1)
end

function Sorts_18973(pUnit, Event)
local choix_sorts_18973 = math.random(0, 1)
if choix_sorts_18973 == 0 then
pUnit:RegisterEvent('spell0_18973', 1, 1)
end
if choix_sorts_18973 == 1 then
pUnit:RegisterEvent('spell1_18973', 1, 1)
end
end

function mob18973_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18973', math.random(1500, 3000), 1)
end

function mob18973_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18973_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18973_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18973, 1, 'mob18973_Action')
RegisterUnitEvent(18973, 2, 'mob18973_Leave')
RegisterUnitEvent(18973, 3, 'mob18973_Kill')
RegisterUnitEvent(18973, 4, 'mob18973_Die')
